Q3Vector3D_Transform
You can use theQ3Vector3D_Transform
function to apply a transform to a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Transform ( const TQ3Vector3D *vector3D, const TQ3Matrix4x4 *matrix4x4, TQ3Vector3D *result);
vector3D
- A three-dimensional vector.
matrix4x4
- A 4-by-4 matrix.
result
- On exit, the vector that is the result of multiplying
vector3D
bymatrix4x4
.DESCRIPTION
TheQ3Vector3D_Transform
function returns, as its function result and in theresult
parameter, the vector that is the result of multiplying the vectorvector3D
by the matrix transformmatrix4x4
. Note that on entry theresult
parameter can be the same as thevector3D
parameter.